﻿namespace FFF.Test.Application.AppServices.PublicService.Sessions
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Threading.Tasks;
    using Abp.Application.Services;
    using Abp.Auditing;
    using Abp.Dependency;
    using Abp.Json;
    using Abp.Runtime.Caching;
    using Abp.UI;
    using Microsoft.AspNetCore.Http;
    using Microsoft.AspNetCore.Mvc;
    using FFF.Test.Entity;
    using FFF.Test.Entity.FW.View;
    using FFF.Test.Util.Consts;
    using Ydm.Extensions;

    /// <summary>
    /// session的使用
    /// </summary>
    public interface ISessionAppService : IApplicationService
    {
        /// <summary>
        /// 获取当前登录的接口方的信息
        /// </summary>
        /// <returns>session对象</returns>
        Task<object> GetInterfaceUserAsync();

        /// <summary>
        /// 获取当前登陆人
        /// </summary>
        /// <returns>验证码</returns>
        Task<ViewFWUser> GetCurrentUserInfo();

        /// <summary>
        /// 获取当前验证码
        /// </summary>
        /// <returns>验证码</returns>
        Task<string> GetValidateCode();

        /// <summary>
        /// 获取短信验证码
        /// </summary>
        /// <returns>验证码</returns>
        Task<string> GetSmmsCode();
    }
}
